package com.example.layui.common;

/**
 * @Description //TODO
 * @Author wanghao
 * @Date 2019-08-06 19:44
 **/
public class  ResponseServer <T>{

    private int code;
    private int count;
    private String msg;
    private T data;

    private ResponseServer(int code, int count, String msg, T data) {
        this.code = code;
        this.count = count;
        this.msg = msg;
        this.data = data;
    }

    public static <T> ResponseServer getResponse(int code, int count, String msg, T data) {
        return new ResponseServer( code,  count,  msg,data);
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
